using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
//using Nextel.SatPublicidad.BE;

public partial class RepFotoCabecara : PageController
{

    #region EVENTOS
    
    #endregion
    protected override void initialize()
    {

        Int32 liNumFoto = Int32.Parse(Request.QueryString["NumFoto"]);
        Int32 liPosFoto = Int32.Parse(Request.QueryString["PosFoto"]);
        panCabecera.Width = liNumFoto * 30;

        List<ComboBean> loLista = new List<ComboBean>();

        for (int i = 1; i < liNumFoto + 1; i++)
        {  
            loLista.Add(new ComboBean(liNumFoto.ToString(), i.ToString()));
        }

        Repeater1.DataSource = loLista;
        Repeater1.DataBind();

        
        // si hay fotos no mostrar mensaje
        if (liNumFoto > 0)
        {
            // ((List<FotoDato>)Session["Fotos"])[liPosFoto - 1].Descripcion;
            litDescripcion.Text = "";
        }
        else
        {
            litDescripcion.Text = "NO DATA";
        }

        ////litDescripcion.Text = ((List<BEFotoDato>)Session["fotos"])[liPosFoto - 1].Descripcion;

    }

}
